package com.cl.service;

import com.cl.po.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @Author:Long
 * @Date:Created in 17:45 2018/7/2
 * @Description:
 */
public interface TypeService {

    Type saveType(Type type);

    Type getType(Long id);

    Type updateType(Long id, Type type);

    Type getTypeByName(String name);

    void deleteType(Long id);

    Page<Type> getTypeList(Pageable pageable);

    List<Type> listType();
}
